Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set openblas num threads to 1 to improve multiprocessing performance #776

Merged
merged 1 commit into from
Nov 1, 2020

Conversation

ghop02
Copy link
Contributor

@ghop02 ghop02 commented Nov 1, 2020

Setting openblas threads to 1 drops pyseir runtime from 1hr 26 min -> ~10min (!). I believe this is due to threading contention in openblas when using multiproccessing.

I don't have a 100% detailed understanding for why it's this way, but OpenMathLib/OpenBLAS#731 gives some insight.

There are some other optimizations i'd like to do that will bring the build time down to ~2min 30s, but will throw that in a separate PR

@BrettBoval BrettBoval self-requested a review November 1, 2020 20:28
@ghop02 ghop02 merged commit 0248cc5 into master Nov 1, 2020
@ghop02 ghop02 deleted the openblas-threads-to-one branch November 1, 2020 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants